package com.yc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * InnoDB free: 5120 kB; (`pid`) REFER `test/product`(`pid`) ON DELETE NO ACTION
 * </p>
 *
 * @author ly
 * @since 2022-05-08
 */
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 购物车ID
     */
        @TableId(value = "ciid", type = IdType.AUTO)
      private Integer ciid;

      /**
     * 用户ID
     */
      private Integer uid;

      /**
     * 商品ID
     */
      private Integer pid;

      /**
     * 商品数量
     */
      private Integer count;

    
    public Integer getCiid() {
        return ciid;
    }

      public void setCiid(Integer ciid) {
          this.ciid = ciid;
      }
    
    public Integer getUid() {
        return uid;
    }

      public void setUid(Integer uid) {
          this.uid = uid;
      }
    
    public Integer getPid() {
        return pid;
    }

      public void setPid(Integer pid) {
          this.pid = pid;
      }
    
    public Integer getCount() {
        return count;
    }

      public void setCount(Integer count) {
          this.count = count;
      }

    @Override
    public String toString() {
        return "Cart{" +
              "ciid=" + ciid +
                  ", uid=" + uid +
                  ", pid=" + pid +
                  ", count=" + count +
              "}";
    }
}
